package com.xuan.oath.client.api.constants;

/**
 * @author Lenovo
 * @description: 认证服务配置常量
 * @date 2021/7/23 11:43
 */
public class AuthConstants {

    //用户认证服务名称
    public static final String AUTH_SERVICE = "auth-provider";

    //grant_type类型
    public static final String[] AUTH_GRANT_TYPES={"password","refresh_token"};

    //client_secret 客户端密钥
    public static final String CLIENT_SECRET = "123456";

    //client_id 客户端id
    public static final String CLIENT_ID = "client-app";

    //scopes 允许的授权范围
    public static final String CLIENT_SCOPES[] = {"all"};

    //Token有效期时间
    public static final int TOKEN_VALIDITY = 3600;

    // 刷新Token有效时间
    public static final int REFRESH_TOKEN = 86400;
}
